"use strict";
const path = require("path");
const assert = require("yeoman-assert");
const helpers = require("yeoman-test");

describe("generator-laya:app", () => {
  beforeAll(() => {
    return helpers
      .run(path.join(__dirname, "../generators/app"))
      .withPrompts({ someAnswer: true });
  });

  it("creates files", () => {
    assert.file([
      ".laya/compile.js",
      "bin/index.html",
      "laya/ignore.cfg",
      "libs/LayaAir.d.ts",
      "script/rollup.base.js",
      "source/index.ts",
      "src/Main.ts",
      "package.json",
      "README.md",
      "rollup.bundleless.js",
      "rollup.config.build.js",
      "rollup.config.js",
      "templates.laya",
      "tsconfig.json"
    ]);
  });
});
